package com.testing.vip14login.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Classname Result
 * @Description 类型说明
 * @Date 2023/9/28 20:37
 * @Created by 特斯汀Roy
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Result<T> {
    Integer code;
    String msg;
    T data;

    public static <T> Result<T> success(String msg,T data){
        return new Result(200,msg,data);
    }
}
